<html>
<head>
<meta name="layout" content="main" />
<title><g:message code="user.login.label" /></title>
</head>
<body>

	<h1>
		<g:message code="user.login.label" />
	</h1>
	<g:if test="${flash.message}">
		<div class="message">
			${flash.message}
		</div>
	</g:if>

	<g:form controller="user" action="login" method="post">
		<table>
			<tr>
				<td class="name"><label for="username"><g:message code="user.username.label" default="Username" /></label></td>
				<td class="value"><input type="text" maxlength="8"
					name="username" value="${userInstance?.username}" />
				</td>
			</tr>
			<tr>
				<td class="name"><label for="password"><g:message code="user.password.label" default="Username" /></label>
				</td>
				<td class="value"><input type="password" maxlength="8"
					name="password" />
				</td>
			</tr>
			<tr>
				<td></td>
				<td><g:actionSubmit
						action="login" value="${message(code: 'default.button.login.label') }" />
				</td>
			</tr>
		</table>

	</g:form>
</body>
</html>